﻿<%@ Page language="c#" Codebehind="ListView.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.Role.ListView" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta name="author" content="Herry" />
<meta name="Copyright" content="Copyright (c) 2009 himm.cn" />
<title>ListView</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="/css/other.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/table.css" />

		<script language="javascript">
			function SelectItem()
			{
				var i = 0;
				var e;

				for( i = 0 ; i < ListView.elements.length ; i ++ )
				{
					e = ListView.elements[ i ];
					if( e.type == "checkbox" )	e.checked = !e.checked;
				}
			}

			
			// 高亮背景
			function high( which )
			{ 
				which.style.background = "#C0D9E6";
				which.style.font.color = "red";
			} 

			// 取消背景高亮
			function low( which )
			{ 
				which.style.background = "#FFFFFF";
				which.style.font.color = "black";
			}
		</script>
</head>
<body>
		<form id="ListView" runat="server">
        <div class="m">
        <div class="path"><a href="/SubModule/UnitiveDocument/Desktop.aspx">我的桌面</a> >> 角色成员</div>
        <div class="con">
        <div class="tabnav">
        <p class="tabnavhead">
        <span class="<%Response.Write(GetSelectImage("active1","active2",DisplayType,0));%> tnc">
        <asp:LinkButton id="lbMember" runat="server">角色成员</asp:LinkButton></span>
        <span class="<%Response.Write(GetSelectImage("active1","active2",DisplayType,1));%> tnc">
        <asp:LinkButton id="lbNonMember" runat="server">非成员</asp:LinkButton></span>
        <asp:Button id="cmdManageRole" runat="server" Width="68px" Text="角色管理" Height="20px" CssClass="redbuttoncss"></asp:Button>
									<asp:Button id="cmdManageRight" runat="server" Width="72px" Text="权限管理" Height="19px" CssClass="redbuttoncss"></asp:Button>
									<asp:Button id="cmdDeleteStaffFromRole" runat="server" Width="74px" Text="脱离角色" Height="20px"
										CssClass="redbuttoncss"></asp:Button>
									<asp:Button id="cmdAddToRole" runat="server" Width="73px" Text="加入角色" Height="20px" CssClass="redbuttoncss"></asp:Button>
        </p>
        </div>

						<asp:datagrid id="dbStaffList" runat="server" DataKeyField="Staff_ID" AllowPaging="True" Width="100%"
							AutoGenerateColumns="False" PageSize="15" BorderWidth="1px" BackColor="White" BorderColor="#337FB2"
							BorderStyle="None" CellPadding="3" OnPageIndexChanged="DataGrid_PageChanged">
							<SelectedItemStyle Font-Bold="True" ForeColor="#CCFF99" BackColor="#009999"></SelectedItemStyle>
							<AlternatingItemStyle  BackColor="#E8F4FF"></AlternatingItemStyle>
							<ItemStyle  ForeColor="#003399" BackColor="White"></ItemStyle>
							<HeaderStyle  ForeColor="White" BackColor="#337FB2"></HeaderStyle>
							<FooterStyle  HorizontalAlign="Right" ForeColor="#003399" BackColor="#99CCCC"></FooterStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="ID">
									<HeaderStyle Width="20px"></HeaderStyle>
									<ItemTemplate>
										<asp:CheckBox id="Staff_ID" runat="server"></asp:CheckBox>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:HyperLinkColumn Text="真实姓名" DataNavigateUrlField="staff_id" DataNavigateUrlFormatString="../Position/NewStaff.aspx?StaffID={0}&amp;ReturnPage=0"
									DataTextField="RealName" HeaderText="真实姓名">
									<HeaderStyle Width="100px"></HeaderStyle>
								</asp:HyperLinkColumn>
								<asp:BoundColumn DataField="Mobile" HeaderText="手机">
									<HeaderStyle Width="60px"></HeaderStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="Age" HeaderText="年龄">
									<HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="SexName" HeaderText="性别">
									<HeaderStyle HorizontalAlign="Center" Width="30px"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="Email" HeaderText="EMAIL">
									<HeaderStyle Width="100px"></HeaderStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="Position_Name" HeaderText="所在职位">
									<HeaderStyle Width="150px"></HeaderStyle>
								</asp:BoundColumn>
								<asp:BoundColumn DataField="RQ" HeaderText="注册日期">
									<HeaderStyle HorizontalAlign="Center" Width="80px"></HeaderStyle>
									<ItemStyle HorizontalAlign="Center"></ItemStyle>
								</asp:BoundColumn>
							</Columns>
							<PagerStyle  HorizontalAlign="Right" ForeColor="#003399" BackColor="#E8F4FF"
								Mode="NumericPages"></PagerStyle>
						</asp:datagrid>
      </div>
  </div>
</form>
</body>
</html>
